package com.mtsmda.hibernateproject.h.domain;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Person implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private Integer age;
	private String firstname;
	private String lastname;
	private Set<Event> events = new HashSet<>();
	private Set<String> emails = new HashSet<>();
	
	public Person() {
		
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public Set<Event> getEvents() {
		return events;
	}

	public void setEvents(Set<Event> events) {
		this.events = events;
	}

	public Set<String> getEmails() {
		return emails;
	}

	public void setEmails(Set<String> emails) {
		this.emails = emails;
	}

}